package cn.lizemin.Responsibility.origin.entity;

/**
 * @author lzm
 * @version 1.0
 * @description: 财务专员类
 * @date 2022/5/2 9:52
 */
public class Staff {

    /**员工姓名*/
    private String name ;

    public Staff(String name) {
        this.name = name;
    }

    /**
     * 审批报销
     * @param amount
     * @return
     */
    public boolean approve(int amount) {
        if (amount <= 1000) {
            System.out.println("审批通过。【专员：" + name + "】");
            return true;
        } else {
            System.out.println("无权审批，请找上级。【专员：" + name + "】");
            return false;
        }

    }



}
